var obj = new Object();
console.log(obj.constructor);
var obj1 = new obj.constructor;
console.log(typeof obj1);
console.log(typeof obj);


console.log("------------------");
console.log(Object.prototype);
function Person(){};
console.log(Person.prototype);

console.log("------------------");
var o = new Object();
o.name = "zhangsan";
console.log(o.hasOwnProperty("name"));
console.log(o.hasOwnProperty("age"));

console.log("------------------");

var newObj = new Object();
newObj.name = "lisi";
console.log(Object.prototype.isPrototypeOf(newObj));

var p = new Person();
console.log(Person.prototype.isPrototypeOf(p));

console.log("------------------");
var se = {age:18};
// console.log(se.propertyIsEnumrable("age"));

var arr = new Array(1,2,3);
var str = new String("anni")
var pattern = new RegExp("w","i")
arr = null;

console.log("------------------");

var j = {
    name:"anni",
    age:18,
    sex:"nan",
    say:function(){
        console.log(this.name+ " can say with other");
    }
}

var b = {};
for(k in j){
    b[k] = j[k];
}
console.log(b);
b.say();

console.log("------------------");
var s1 = "ahuisasasasa";
var s2 = s1.substring(4);
console.log(s2);

console.log("------------------");
var ss = new Number(0);
alert(ss);
console.log(typeof ss);
console.log(Boolean(ss));

